<!doctype html>

<head>
    <meta name="Generator"  />
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">
    <title>订单详情</title>
    <meta name="Keywords" content="Call管家" />
    <meta name="Description" content="Call管家" />
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>

    <link rel="stylesheet" href="__HOMECSS__/style.css">
    <script src="__HOMEJS__/jquery-1.7.2.min.js"></script>
</head>

<body style="margin-bottom: 60px;">

<!-- 待收货 -->

<div class="receiving_head">
    <p>{$order.status_str}</p>
</div>
<div class="confirm_address">
    <div class="confirmaddress_l">
        <img src="__HOMEIMG__/order_03.png" alt="" width="100%">
    </div>

    <div class="confirmaddress_r">
        <p class="namephone"><span>收货人：{$order.consignee}</span> <span>{$order.mobile}</span></p>
        <p class="address">收货人：{$order.region_address}{$order.address}</p>
    </div>
</div>
<div class="orderlist_top">
    <span>订单编号：{$order.order_sn}</span>
</div>

{foreach name="order.goodsList" item="item"}
    <div class="orderlist_content receiving_content">
        <div class="content_img">
            <img src="{$item.image}" alt="" width="100%">
        </div>
        <div class="content_name">
            <p class="name">{$item.goods_name}</p>
            <p>{$item.attr_key_name}</p>
        </div>
        <div class="content_price">
            <p>¥ {$item.price}</p>
            <p class="quantity">x {$item.goods_num}</p>
            {if condition="$order['pay_status'] eq 1"}
                {if condition="$item['aftersale_id']"}
                    <a href="{:Url('Order/afterSaleDetail',['id'=>$item['aftersale_id']])}" class="rece_return" style="display: block">查看售后</a>
                {else/}
                    <a href="{:Url('Order/afterSale',['order_goods_id'=>$item['id']])}" class="rece_return" style="display: block">退款</a>
                {/if}
            {/if}
        </div>
    </div>
{/foreach}

<div class="receiving_amoutprice">
    <p><span>总计:</span><span>¥ {$order.total_amount}</span></p>
    {if condition="$order.shipping_price neq 0"}<p><span>运费:</span><span>¥ {$order.shipping_price}</span></p>{/if}
    {if condition="$order.integral_money neq 0"}<p><span>积分抵用:</span><span class="red">-￥ {$order.integral_money}</span></p>{/if}
    {if condition="$order.coupon_price neq 0"}<p><span>优惠券:</span><span class="red">-￥ {$order.coupon_price} </span></p>{/if}
    <p class="color"><span>实付款:</span><span class="red">{$order.order_amount} 元</span></p>
</div>
<ul class="receiving_kefu">
    <li>
        <span>联系客服</span>
    </li>
    <li>

        <span>拨打电话</span>
    </li>
</ul>

<div class="receiv_nubmer">
    <p>订单编号：<span>{$order.order_sn}</span></p>
    <p>下单时间：<span>{$order['add_time']|date="Y-m-d H:i:s",###}</span></p>
    {if condition="$order['pay_time'] neq 0"}<p>付款时间：<span>{$order['pay_time']|date="Y-m-d H:i:s",###}</span></p>{/if}
    {if condition="$order['shipping_time'] neq 0"}<p>发货时间：<span>{$order['shipping_time']|date="Y-m-d H:i:s",###}</span></p>{/if}
</div>

{if condition="!empty($order['button'])"}
<div class="receiving_rement">
    {$order.button}
</div>
    <script>
        $('.receiving_rement span').click(function(){
            window.location.href=$(this).data('url');
        });
    </script>
{/if}
</body>

<script>


    window.onload = function(){
        shop_cart.init();
    }
    var shop_cart ={

        init:function(){
            this.choseNum();
        },
        choseNum:function () {
            $(".cut").click(function(){
                var num =parseInt($(this).parents(".chosenum1").find("input").val());
                if(num != 0){
                    num --;
                }
                $(this).parents(".chosenum1").find("input").val(num);
            })
            $(".add").click(function(){
                var num =parseInt($(this).parents(".chosenum1").find("input").val());
                if(num != 999){
                    num ++;
                }
                $(this).parents(".chosenum1").find("input").val(num);
            })
        },
    }

    $(function () {
        $(".circle").click(function () {
            $(this).find(".small_y").addClass("samll_yy")
        })

        $(".rece_return").click(function () {
            window.location.href = "sales_return.html"
        })

    })

</script>
</html>
